<template>
    <div>
        <el-icon @click="change">
            <caret-left v-if="store.state.homeindex.navBool" />
            <caret-right v-else />
        </el-icon>
    </div>
</template>

<script setup lang="ts">
import { CaretLeft, CaretRight } from "@element-plus/icons-vue";
import { useStore } from "vuex";
const store = useStore();

let change = () => {
    store.commit("setNavBool")
}
</script>

<style lang="scss" scoped>

</style>